package com.mercenary.wein.screenControl.bean;

import com.google.gson.Gson;

/**
 * Created by tuxiao on 2017/3/25.
 */
public class ScheduleTask {
    private long id;
    private String taskConf;
    private String jobName; //这两个信息是冗余信息，在taskConf有了
    private long zid;

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public long getZid() {
        return zid;
    }

    public void setZid(long zid) {
        this.zid = zid;
    }

    public ScheduleTask() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTaskConf() {
        return taskConf;
    }

    public void setTaskConf(String taskConf) {
        this.taskConf = taskConf;
    }

    public CommandBean getCommandBean(){
        return new Gson().fromJson(this.getTaskConf(),CommandBean.class);
    }
}
